//
// Created by Dinger on 2021/9/18.
//

#ifndef FUNDAMENTALS_OF_COMPILING_WORD_H
#define FUNDAMENTALS_OF_COMPILING_WORD_H
#include"stdafx.h"

using namespace std;

/**
 * 字符类
 */
class Word {
private:
    //字符信息
    string _wordMessage;
    //字符序号（ID）
    int _wordNumber;
    //字符行位
    int _position_row;
    //字符列位
    int _position_col;
    //源文件名
    string _fileName;

public:
    Word();

    Word(int wordNumber, string wordMessage);

    Word(int wordNumber, string wordMessage, int position_row, int position_col, string fileName);

    string getWordMessage() {
        return _wordMessage;
    }

    int getWordNumber() {
        return _wordNumber;
    }

    int getPositionRow() {
        return _position_row;
    }

    int getPositionCol() {
        return _position_col;
    }

    string getFileName() {
        return _fileName;
    }

    void setWordMessage(string wordMessage) {
        _wordMessage = wordMessage;
    }

    void setWordNumber(int wordNumber) {
        _wordNumber = wordNumber;
    }

    void setPositionRow(int positionRow) {
        _position_row = positionRow;
    }

    void setPositionCol(int positionCol) {
        _position_col = positionCol;
    }

    void setFileName(string fileName) {
        _fileName = fileName;
    }
};

#endif //FUNDAMENTALS_OF_COMPILING_WORD_H
